<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="../../attr.jsp" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@page import="com.lrkj.back.vo.constant.PathInfo"%>
<c:set var="systemId" value="<%=PathInfo.systemId%>" />
<c:set var="menuXy" value="${menuList}[${systemId}]" />
<!doctype html>
<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=emulateIE7" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" href="${ctx}/css/sapar.css" />
    <link rel="stylesheet" href="${ctx}/css/index_inner.css" />
    <title>系统</title>
</head>

<body>
<div id="container">
    <div id="bd">
        <div class="wrap clearfix">
            <div class="sidebar">
                <h2 class="sidebar-header"><p>功能导航</p></h2>
                <ul class="nav">
                    <%-- <li class="system current"><div class="nav-header"><a href="javascript:;" data-src="${ctx}/page/indexShouye.jsp" class="clearfix"><span>功能流程</span><i class="icon"></i></a></div></li> --%>
                    <li class="system current"><div class="nav-header"><a href="javascript:;" data-src="${ctx}/shift/shiftList.do" class="clearfix"><span>系统首页</span><i class="icon"></i></a></div></li>
                    <!-- <li class="system"><div class="nav-header"><a href="javascript:;" data-src="mimaxiugai/mima_update.jsp" class="clearfix"><span>培训管理</span><i class="icon"></i></a></div></li> -->
                    <li class="system"><div class="nav-header"><a href="javascript:;" data-src="${ctx}/department/departmentList.do" class="clearfix"><span>科室管理</span><i class="icon"></i></a></div></li>
                    <li class="system"><div class="nav-header"><a href="javascript:;" data-src="${ctx}/employee/empList.do" class="clearfix"><span>人员管理</span><i class="icon"></i></a></div></li>
                     <li class="system"><div class="nav-header"><a href="javascript:;" data-src="${ctx}/url/moduleList.do" class="clearfix"><span>菜单管理</span><i class="icon"></i></a></div></li>
                    <li class="system"><div class="nav-header"><a href="javascript:;" data-src="${ctx}/affiche/afficheList.do" class="clearfix"><span>通知公告</span><i class="icon"></i></a></div></li>
                     <li class="system"><div class="nav-header"><a href="javascript:;" data-src="${ctx}/shift/shiftList.do" class="clearfix"><span>排班信息</span><i class="icon"></i></a></div></li>
                    <%-- <li class="system"><div class="nav-header"><a href="javascript:;" data-src="${ctx}/shift/wenkuList.do" class="clearfix"><span>绩效考核</span><i class="icon"></i></a></div></li> --%>
                    <li class="system"><div class="nav-header"><a href="javascript:;" data-src="${ctx}/shift/wenkuList.do" class="clearfix"><span>文库</span><i class="icon"></i></a></div></li>
                        <li class="system"><div class="nav-header"><a href="javascript:;" data-src="${ctx}/zhuisuPackage/liucheng" class="clearfix"><span>流程</span><i class="icon"></i></a></div></li>
                        <li class="system"><div class="nav-header"><a href="javascript:;" data-src="${ctx}/ceshi/login" class="clearfix"><span>测试</span><i class="icon"></i></a></div></li>
                </ul>
            </div>
            <div class="content" id="cc">
                <%--<iframe v-bind:src=menus[0].moduleUrl id="iframe" width="100%" height="100%" frameborder="0"></iframe>--%>
                <iframe src="${ctx}/shift/shiftList.do" id="iframe" width="100%" height="100%" frameborder="0"></iframe>
            </div>
        </div>
    </div>
</div>
</body>
<script type="text/javascript" src="${ctx}/js/jquery.js"></script>
<%@ include file="../../js.jsp" %>


<script type="text/javascript">

    var d = ${menuXy};

    function menuList(){
        for(var i = 0;i<d.length;i++){
            var str = "";
            var ifr = "";
            if(i==0){
                //ifr = "<iframe src='"+d[i].moduleUrl+"' id='iframe' width='100%' height='100%' frameborder='0'></iframe>";
                str +="<li class='gongwen current'><div class='nav-header'><a href='#' data-src='"+d[i].moduleUrl+"' class='clearfix'><span>"+d[i].moduleName+"</span><i class='icon'></i></a></div></li>";
            }else{
                str +="<li class='gongwen'><div class='nav-header'><a href='#' data-src='"+d[i].moduleUrl+"' class='clearfix'><span>"+d[i].moduleName+"</span><i class='icon'></i></a></div></li>";
            }
            $(".nav").append(str);
        }
    }

//    menuList();

    var app = new Vue({
        el: '#cc',
        data: {
            menus :${menuXy},

        },
        methods:{

        },

    });


    $(function () {

        /**
         * 全局ajax拦截
         */
        $.ajaxSetup({
            complete: function (XMLHttpRequest, status) {
                if (XMLHttpRequest.status == 401) {
                    location.href = '${ctx}/index.jsp';
                }
            },
            error: function (XMLHttpRequest, textStatus, errorThrown) {
                if (XMLHttpRequest.status == 401) {
                    location.href = '${ctx}/index.jsp';
                }
            }
        });
    })

</script>
</html>